home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-SPAR.{_6 / INIT.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  736b  |  28 lines

  1. #ifndef _SPARC_INIT_H
  2. #define _SPARC_INIT_H
  3.  
  4. #if (defined (__svr4__) || defined (__ELF__))
  5. #define __init __attribute__ ((__section__ (".text.init")))
  6. #define __initdata __attribute__ ((__section__ (".data.init")))
  7. #define __initfunc(__arginit) \
  8.     __arginit __init; \
  9.     __arginit
  10. #define __cacheline_aligned __attribute__ \
  11.             ((__section__ (".data.cacheline_aligned")))
  12. /* For assembly routines */
  13. #define __INIT        .section    ".text.init",#alloc,#execinstr
  14. #define __FINIT    .previous
  15. #define __INITDATA    .section    ".data.init",#alloc,#write
  16. #else
  17. #define    __init
  18. #define __initdata
  19. #define __initfunc(__arginit) __arginit
  20. #define __cacheline_aligned
  21. /* For assembly routines */
  22. #define __INIT
  23. #define __FINIT
  24. #define __INITDATA
  25. #endif
  26.  
  27. #endif
  28.